package com.google.code.virtualhockey.vhx.server.servlet

import scala.sys.SystemProperties

/**
 * Describes the current VHX runtime environment.
 */
object VhxEnv {
  val HOST_PAGE_URL         = "/index.html"
  val SESSION_COOKIE        = "ACSID"
  val SECURE_SESSION_COOKIE = "SACSID"
  val REFERRER_URL          = "vhx-hockey.appspot.com/index.html"
  val REQ_HEADER_COMMAND    = "x-vhx-command"
  val REQ_HEADER_LOCALE     = "x-vhx-locale"
  
  lazy val isDevelopmentServer = {
    val prop = new SystemProperties().get( "com.google.appengine.runtime.environment" )
    prop != None && prop.get == "Development"
  }
}
